<?php
include_once '../../../core/Conexion.php';
include_once '../../../core/GestionDb.php';
include_once '../../../entidades/Alumno.php';
include_once '../../../entidades/Usuario.php';

$entidadAlumno=new Alumno($_POST['cedula'],$_POST['nick'], $_POST['nombre'], $_POST['telefono'], $_POST['direccion'],$_POST['email']);
$entidadUser=new Usuario($_POST['nick'], $_POST['password']);

$entidadUser->grabar();
$entidadAlumno->grabar();

header("Location: ../../../login.php");
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

